package com.expdatacloud.service;

import com.expdatacloud.entity.IqcDetection;

import java.util.List;

/**
 * <p>
 * IQC-检测表 服务类
 * </p>
 *
 * @author jie
 * @since 2019-11-13
 */
public interface IqcDetectionService {

    /**
     * 分页查询货品信息
     * @param iqcDetection
     * @return
     */
    List<IqcDetection> list(IqcDetection iqcDetection);

    /**
     * 根据行号，收货单号获取货品信息
     */
    IqcDetection getByReceiptkeyAndSku(IqcDetection iqcDetection);

    /**
     * iqc检测页面的提交
     */
    int submit(IqcDetection iqcDetection, String user,
               String checkItemName,String library);

    int submitCheckItem(IqcDetection iqcDetection,String user,String library,String checkItemName);

    /**
     *  iqc检测页面的更新
     */
    int update(IqcDetection iqcDetection, String user);
    /**
     * 获取检验结果
     * @param receiptKey 收货单号
     * @param sku 物料编码
     */
     String getResult(String receiptKey,String sku);
}
